package com.qf.servlet;

import com.qf.pojo.User;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * created by 赵文韬 on 2022/3/4 14:29
 */
@Component
public class UserServletImpl implements UserServlet {
    private UserService userService;
@Autowired
    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    @Override
    public User getUser() {
        return userService.getUser();
    }
}
